package com.bbcare.followup.plat.store.ibatis;

import java.util.List;
import java.util.Map;

import com.bbcare.followup.plat.entity.FollowTask;

/*
 * @name:         任务信息存储接口
 * @author:       DemonLee
 * @createTime:   2017.4.12
 * @description:  任务基本信息
 * @modify:
 * 
 */
public interface IFollowTaskDAO {
    /**
     * 查询任务list
     * 
     * @param schemeVersionid
     * @return list
     */
    public List<FollowTask> selectBySchemeVersionid(Map<String, Object> paramMap) throws Exception;

    /**
     * 查询任务list
     * 
     * @param id,schemeVersionId
     * @return list
     */
    public List<FollowTask> selectByIdAndSchemeVerId(Map<String, Object> paramMap) throws Exception;

    /**
     * 新增任务信息
     * 
     * @param List<FollowTask>
     * @return int
     */
    public int saveTaskBatch(List<FollowTask> paramList) throws Exception;

    /**
     * 新增任务版本信息
     * 
     * @param Map
     * @return int
     */
    public int saveNewTaskInfoBySchemeVerId(Map<String, Object> paramMap) throws Exception;

    /**
     * 更新任务信息
     * 
     * @param Map
     * @return int
     */
    public int updateTaskInfoByTaskIdAndSchemeVerId(Map<String, Object> paramMap) throws Exception;

    /**
     * 删除任务信息
     * 
     * @param Map
     * @return int
     */
    public int deleteTaskInfoByTaskIdAndSchemeVerId(Map<String, Object> paramMap) throws Exception;

    /**
     * 查询任务
     * 
     * @param schemeVersionid,task_id
     * @return list
     */
    public List<FollowTask> selectFollowTaskByScheVerAndId(Map<String, Object> paramMap) throws Exception;
}
